<!DOCTYPE html>
<html>
		<head>
			<meta charset="utf-8">
			<title></title>
		</head>
		<body>
			<script type="text/javascript">
				
				var arr4 = [
					{id:1,name:"张三",age:18	},
					{id:2,name:"李四",age:18	},
					{id:3,name:"王五",age:18	},
				]
				console.log(arr4);
			
				document.write("<table border='1'>");
				document.write("<tr><td>学号</td><td>姓名</td><td>年龄</td></tr>")
				for(var i=0;i<arr4.length;i++)
				{
					document.write("<tr>");
					var stu = arr4[i];
					with(stu)
					{
						document.write("<td>"+id+"</td>");
						document.write("<td>"+name+"</td>");
						document.write("<td>"+age+"</td>");					
					}
					document.write("</tr>");
				}
				document.write("</table>")
			</script>
		</body>
</html>
